package com.jiayang.business.homepage;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiayang.business.homepage.domain.dto.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ Author     ：OuyangChenglong
 * @ Date       ：Created in 14:10 2021/9/9
 * @ Description：总部首页统计项相关dao层
 * @ Modified By：
 * @Version: 1.0$
 */
@Mapper
@Component
public interface HomePageDao extends BaseMapper {

    List<DailyDownDTO> getDailyDown(Long id);

    List<EnergyConsumptionDTO> getEnergyConsumption(Long uid);

    List<DailyAlarmDTO> getDailyAlarm(Long uid);

    List<OnlineEquipmentDTO> getOnlineEquipment(Long uid);

    List<OnlineSensorDTO> getOnlineSensor(Long uid);

    List<TopFiveDTO> getTopFive(Long uid);

    InfoDTO getInfo(Long uid);

    void updateFeedBack(@Param("uid") Long uid, @Param("feedback")String feedback);
}
